$item-width:32px;
$item-margin:1px;
.uix-calendar{
    //width: 259px;
    //height: 250px;
    display: inline-block;
    border-radius: 3px;
    color: #666;
    cursor: default;
    overflow: hidden;
    border: 1px solid #ddd;
    background-color: #fff;
    white-space: normal;
    -webkit-appearance: none;
    .uix-cal-month{
        line-height: 20px;
        text-align: center;
        font-size: 17px;
        font-weight: 700;
        height: 22px;
        position: relative;
        padding-top: 17px;
        padding-bottom: 5px;
        box-sizing: content-box;
    }
    .uix-cal-month-name{
        font-size: 15px;
        font-weight: 400;
    }
    .uix-cal-pre-button,
    .uix-cal-next-button{
        cursor: pointer;
        position: absolute;
        top: 17px;
        width: 30px;
        height: 42px;
        background-position: 11.5px 4px;
        -moz-user-select: none;
        -webkit-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
    .uix-cal-pre-button{
        left: 17px;
    }
    .uix-cal-next-button{
        right: 17px;
    }
    .uix-cal-header{
        margin: 0 17px;
        height: auto;
        font-size: 14px;
        line-height: 1;
        & > div{
            width: 32px;
            padding:1px;
            float: left;
            text-align: center;
            height: 19px;
            color: #666;
            border-bottom: #cecece 1px solid;
            margin-bottom: 7px;
            overflow: hidden;
        }
    }
    .uix-cal-body{
        margin: 0 17px;
    }
    .uix-cal-row{
        height: 24px;
        min-width:$item-margin * 7 + $item-width * 7;
        line-height: 24px;
        clear: both;
        & > div{
            float: left;
            text-align: center;
            height: 100%;
            width: $item-width;
        }
    }
    .uix-cal-day{
        margin: $item-margin $item-margin 0 0;
        cursor: pointer;
        font-size: 12px;
        color: #666;
        -moz-user-select: none;
        -webkit-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
    .uix-cal-weekday{
        color: #3498db;
        font-weight: 700;
    }
    .uix-cal-day:hover,
    .uix-cal-select{
        border:none;
        color: #fff;
        background: #27ae60;
        border-radius: 6px;
    }
    .uix-cal-outside{
        font-weight: 400;
        color: #bbb;
    }
    .uix-cal-day-disabled{
        cursor: not-allowed;
        color: #bbb;
        &:hover{
            border:none;
            color: #bbb;
            background: none;
        }
    }
    .uix-cal-day-today{
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        border: 1px solid #3498db;
        border-radius: 6px;
        &:hover{
            border: 1px solid #3498db;
        }
    }
    .uix-cal-footer{
        text-align: center;
        font-size: 12px;
        color: #444;
        margin: 4px 17px;
        padding-top: 2px;
        cursor: pointer;
    }
    .uix-cal-time{
        padding: 2px 4px;
        &:hover{
            text-decoration: underline;
            color: #3498db;
        }
    }
    .uix-cal-today-btn[disabled]{
        cursor: not-allowed;
    }
    .uix-cal-today-btn{
        padding: 3px 0;
        font-size: 14px;
        font-weight: 700;
        &:hover{
            background: #eee;
            border-radius: 5px;
        }
    }
    .uix-cal-panel-time{
        padding: 10px 30px;
        .btn-group{
            display: block;
        }
        button{
            outline: none;
            width: 33.333%;
        }
    }
    .uix-timepanel{
        border:none;
    }
    .uix-cal-month-table{
        margin-bottom:20px;
    }
    .uix-cal-month-item{
        padding: 5px;
        border: 1px solid #ddd;
        margin: 2px;
        text-align: center;
        cursor: pointer;
        min-width: 60px;
        &:hover{
            background: #74BCEC;
        }
    }
    .uix-cal-year-item{
        padding:5px 20px;
    }
    .uix-cal-month-select{
        background: #3498db;
        color: #fff;
        &:hover{
            background: #3498db;
        }
    }
}